home *** CD-ROM | disk | FTP | other *** search
- global gqtvrinstance
-
- on panzoomin step
- if isqtvrmovie(gqtvrinstance) then
- set tfov to qtvrgetfov(gqtvrinstance)
- if tfov > 20 then
- set tfov to tfov - step
- qtvrsetfov(gqtvrinstance, string(tfov))
- qtvrupdate(gqtvrinstance)
- end if
- end if
- end
-
- on panzoomout step
- if isqtvrmovie(gqtvrinstance) then
- set tfov to qtvrgetfov(gqtvrinstance)
- if tfov < 58 then
- set tfov to tfov + step
- qtvrsetfov(gqtvrinstance, string(tfov))
- qtvrupdate(gqtvrinstance)
- end if
- end if
- end
-
- on pantoleft step
- global roomnumber, currectnodeid
- if isqtvrmovie(gqtvrinstance) then
- set panAngle to qtvrgetpanangle(gqtvrinstance)
- repeat while the mouseDown
- set panAngle to panAngle + step
- qtvrsetpanangle(gqtvrinstance, string(panAngle))
- qtvrupdate(gqtvrinstance)
- if (roomnumber = 204) and (currectnodeid = 4) then
- exit
- next repeat
- end if
- mousestilldownhandler()
- end repeat
- end if
- end
-
- on pantoright step
- global roomnumber, currectnodeid
- if isqtvrmovie(gqtvrinstance) then
- set panAngle to qtvrgetpanangle(gqtvrinstance)
- repeat while the mouseDown
- set panAngle to panAngle - step
- qtvrsetpanangle(gqtvrinstance, string(panAngle))
- qtvrupdate(gqtvrinstance)
- if (roomnumber = 204) and (currectnodeid = 4) then
- exit
- next repeat
- end if
- mousestilldownhandler()
- end repeat
- end if
- end
-